// 获取用统计列表
import axios from "../../utils/axios";

export function getList(query) {
    return axios({
        url: "/SalesStatistics/getSalesStatisticsList",
        method: "get",
        params: query
    });
}
//获得详细
export function getCommodityOrderDetail(query) {
    return axios({
        url: "goldendays-order/busCommodityOrderPc/getCommodityOrderDetail",
        method: "get",
        params: query
    });
}
// 修改价格
export function updateOrder(data) {
    return axios({
        url: "/SalesStatistics/updateOrder",
        method: "post",
        data: data
    });
}
//快递发货
export function getLogisticsCompany(query) {
    return axios({
        url: "goldendays-order/busCommodityOrderPc/getLogisticsCompany",
        method: "get",
        params: query
    });
}
//普通发货
export function updateOrderStatus(query) {
    return axios({
        url: "goldendays-order/busCommodityOrderPc/updateOrderStatus",
        method: "get",
        params: query
    });
}
//vip的发货
export function updateOrderVipStatus(query) {
    return axios({
        url: "goldendays-order/vipOrder/vipOrderDeliverGoods",
        method: "get",
        params: query
    });
}

export function getlogistics(data) {
    return axios({
        url: "goldendays-currency/currency/queryTrackMap",
        method: "post",
        data: data
    });
}
//统计头信息
export function getTotalSalesStatistics(query) {
    return axios({
        url: "/SalesStatistics/getTotalSalesStatistics",
        method: "get",
        params: query
    });
}

// getCommodityVipOrderDetail

//获得详细
export function getCommodityVipOrderDetail(query) {
    return axios({
        url: "goldendays-order/vipManageOrder/queryVipOrderDetail",
        method: "get",
        params: query
    });
}

//修改收货信息

export function updateOrderAddress(query) {
    return axios({
        url: "goldendays-order/busCommodityOrderPc/updateOrderAddress",
        method: "post",
        params: query
    });
}

//修改vip收货信息
export function updateVipAddress(data) {
    return axios({
        url: "goldendays-order/vipManageOrder/updateVipOrderAddress ",
        method: "post",
        data: data
    });
}